namespace Rsdn.SmartApp.CommandLine
{
	/// <summary>
	/// Helper methods for work with command line.
	/// </summary>
	public static class CommandLineHelper
	{
		/// <summary>
		/// Parse command line.
		/// </summary>
		public static CmdLineNode ParseCommandLine(string source)
		{
			return CommandLineParser.ParseCommandLine(source);
		}

		/// <summary>
		/// Check command line semantics.
		/// </summary>
		public static void Check(string commandLine, CmdLineRules rules)
		{
			Check(CommandLineParser.ParseCommandLine(commandLine), rules);
		}

		/// <summary>
		/// Check command line semantics.
		/// </summary>
		public static void Check(CmdLineNode commandLine, CmdLineRules rules)
		{
			CommandLineChecker.Check(commandLine, rules);
		}
	}
}